export interface ArticleType<T,D> {
    article_backimg: string;
    article_id: number;
    article_text: string;
    article_time: number;
    article_title: string;
    article_user: number;
    article_view: number;
    categories_id: T;
    tag_id: D;
}


export interface ArticleInfoType extends ArticleType<categories[],tag[]>{
    article_comment: comment[]
    loading: boolean
    page: number
    total_page: number
}

export interface comment {
    article_id: number
    comment_children: comment[]
    comment_father_id: number
    comment_id: number
    comment_text: string
    comment_time: number | null
    loading: boolean
    page: number
    total_page: number
    user_id: number
    user_img: string
    user_name: string
    user_reply_id: number
    user_reply_name: string
}


export interface categories {
    categories_id: number;
    categories_title: string;
}


export interface tag {
    tag_id: number;
    tag_title: string;
}
